package com.dianjing.dianqun.dao.dianpai;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dianjing.dianqun.common.base.CrudMpper;
import com.dianjing.dianqun.model.DianPaiCommentReply;

public interface DianPaiCommentReplyMapper extends CrudMpper<DianPaiCommentReply> {
	/**
	 *
	 * @mbggenerated 2017-10-24
	 */
	int deleteByPrimaryKey(Integer replyId);

	/**
	 *
	 * @mbggenerated 2017-10-24
	 */
	int insert(DianPaiCommentReply record);

	/**
	 *
	 * @mbggenerated 2017-10-24
	 */
	int insertSelective(DianPaiCommentReply record);

	/**
	 *
	 * @mbggenerated 2017-10-24
	 */
	DianPaiCommentReply selectByPrimaryKey(Integer replyId);

	/**
	 *
	 * @mbggenerated 2017-10-24
	 */
	int updateByPrimaryKeySelective(DianPaiCommentReply record);

	/**
	 *
	 * @mbggenerated 2017-10-24
	 */
	int updateByPrimaryKeyWithBLOBs(DianPaiCommentReply record);

	/**
	 *
	 * @mbggenerated 2017-10-24
	 */
	int updateByPrimaryKey(DianPaiCommentReply record);

	/**
	 * 查询3个子评论 check 为null 则认为是自己是当前 评论下的作者  忽略状态 
	 * @param commentId
	 * @param check
	 * @return
	 */
	List<DianPaiCommentReply> select3BycommentId(@Param("commentId")Integer commentId,@Param("userId")Integer  userId);

	List<DianPaiCommentReply> findReplyByCommetId(@Param("commentId")Integer commentId,@Param("userId")Integer  userId);

}